#include <asm.h>
#include <regdef.h>
#include <inst_test.h>

LEAF(n45_bgtz_test)
    .set noreorder
    addiu s0, s0 ,1
    li  s2, 0x0
###test inst
    TEST_BGTZ(0xcc738190, 0x40b40d40, 0x45eb9450, 0x00000000, 0x00000000)
    TEST_BGTZ(0x8b970e60, 0x3e3026e7, 0x485f2d18, 0x00000000, 0x00000000)
    TEST_BGTZ(0x7b4858f8, 0x983fea90, 0x9bf0c7cc, 0x983fea90, 0x9bf0c7cc)
    TEST_BGTZ(0x65fbd242, 0x76d2102e, 0xa5ded158, 0x76d2102e, 0xa5ded158)
    TEST_BGTZ(0x033a61c6, 0xd3a9ed2a, 0xdb0ff880, 0xd3a9ed2a, 0xdb0ff880)
    TEST_BGTZ(0xc73719a0, 0x43df9d30, 0xd325d5c0, 0x00000000, 0x00000000)
    TEST_BGTZ(0x29fe5c70, 0x487aa5f8, 0x0cac5c42, 0x487aa5f8, 0x0cac5c42)
    TEST_BGTZ(0x1433f468, 0xc9a2683f, 0xeabbf460, 0xc9a2683f, 0xeabbf460)
    TEST_BGTZ(0x24de5ef2, 0x7c4d2cf9, 0x7899d420, 0x7c4d2cf9, 0x7899d420)
    TEST_BGTZ(0x60a79438, 0xb67105f0, 0x265c5984, 0xb67105f0, 0x265c5984)
    TEST_BGTZ(0x86187dac, 0x0474d400, 0x33c2383c, 0x00000000, 0x00000000)
    TEST_BGTZ(0xa5587200, 0xed85a554, 0x8285f2a0, 0x00000000, 0x00000000)
    TEST_BGTZ(0x42c05c68, 0xc0b37148, 0x3ea06fbf, 0xc0b37148, 0x3ea06fbf)
    TEST_BGTZ(0x23340320, 0x9aa6c78e, 0xab295f0c, 0x9aa6c78e, 0xab295f0c)
    TEST_BGTZ(0xb892e3a2, 0xd977d03c, 0x40de3026, 0x00000000, 0x00000000)
    TEST_BGTZ(0x51afe044, 0x40cbac60, 0xec87d399, 0x40cbac60, 0xec87d399)
    TEST_BGTZ(0x91235cf0, 0x04cf009c, 0x29fcf850, 0x00000000, 0x00000000)
    TEST_BGTZ(0x1dab852d, 0x019b8fb1, 0x680474d1, 0x019b8fb1, 0x680474d1)
    TEST_BGTZ(0xd56587e1, 0xe73ca9c0, 0x8a574ef0, 0x00000000, 0x00000000)
    TEST_BGTZ(0xafc17ba2, 0x7e51854f, 0xbc0295c0, 0x00000000, 0x00000000)
    TEST_BGTZ(0x8b422e64, 0x38fcc6c0, 0x58f2fb68, 0x00000000, 0x00000000)
    TEST_BGTZ(0x2ce34fa4, 0x96e1c737, 0x5258e894, 0x96e1c737, 0x5258e894)
    TEST_BGTZ(0xff129164, 0xf32aa000, 0xe4168ba0, 0x00000000, 0x00000000)
    TEST_BGTZ(0x668bcf90, 0x8b7f374a, 0x2e9199db, 0x8b7f374a, 0x2e9199db)
    TEST_BGTZ(0x5508e680, 0x8cd636af, 0x8c1b69fc, 0x8cd636af, 0x8c1b69fc)
    TEST_BGTZ(0x79e4938c, 0x0a6b4964, 0x27bd35e2, 0x0a6b4964, 0x27bd35e2)
    TEST_BGTZ(0xed2bde39, 0xf876f27c, 0xdebe3030, 0x00000000, 0x00000000)
    TEST_BGTZ(0x94c95e80, 0x75ea4b84, 0x33a18880, 0x00000000, 0x00000000)
    TEST_BGTZ(0x7dfd9ab0, 0xf753984a, 0xaf0532c8, 0xf753984a, 0xaf0532c8)
    TEST_BGTZ(0x185fdee0, 0x6a4ced20, 0x1460740b, 0x6a4ced20, 0x1460740b)
    TEST_BGTZ(0xca8966ac, 0xb12440c8, 0xf22ac2c0, 0x00000000, 0x00000000)
    TEST_BGTZ(0xf353df1c, 0xccbc9630, 0x08e0f060, 0x00000000, 0x00000000)
    TEST_BGTZ(0xd39783ec, 0xf70e1920, 0x6c0cebbf, 0x00000000, 0x00000000)
    TEST_BGTZ(0xd221b0b6, 0xc06d42e0, 0xf7e65ae0, 0x00000000, 0x00000000)
    TEST_BGTZ(0x96c0e2e6, 0x1ca0e834, 0x6452a3d0, 0x00000000, 0x00000000)
    TEST_BGTZ(0x0df32d52, 0x517328e8, 0x14eb2a70, 0x517328e8, 0x14eb2a70)
    TEST_BGTZ(0x4e2018d5, 0x1e74d980, 0x8f0b2328, 0x1e74d980, 0x8f0b2328)
    TEST_BGTZ(0x36fe9020, 0x50bdb2bc, 0x9d55de4b, 0x50bdb2bc, 0x9d55de4b)
    TEST_BGTZ(0xd5ca7000, 0xdccd986a, 0xe0dd29a8, 0x00000000, 0x00000000)
    TEST_BGTZ(0x40a29d20, 0x7db0b3fe, 0x62d53342, 0x7db0b3fe, 0x62d53342)
    TEST_BGTZ(0x1b7a35f1, 0x39c744c8, 0x7ea3e155, 0x39c744c8, 0x7ea3e155)
    TEST_BGTZ(0xdf9b794d, 0x11a6cbdf, 0xc84b874c, 0x00000000, 0x00000000)
    TEST_BGTZ(0xb46f7300, 0x1a1c9040, 0xc08edc80, 0x00000000, 0x00000000)
    TEST_BGTZ(0x3dba6948, 0xa9a4791c, 0xf55e8b40, 0xa9a4791c, 0xf55e8b40)
    TEST_BGTZ(0xf2a06610, 0x6b154e98, 0xcb5a0248, 0x00000000, 0x00000000)
    TEST_BGTZ(0xd2d29ff0, 0xd07e2886, 0xe1a597d8, 0x00000000, 0x00000000)
    TEST_BGTZ(0xa7372748, 0x779f28d4, 0xf829327e, 0x00000000, 0x00000000)
    TEST_BGTZ(0xd13ad050, 0xaf5b01d8, 0x62806d80, 0x00000000, 0x00000000)
    TEST_BGTZ(0x942cb34c, 0x26512e00, 0x1f2b9abc, 0x00000000, 0x00000000)
    TEST_BGTZ(0x6664a816, 0xf93cddd0, 0xd87ee5e8, 0xf93cddd0, 0xd87ee5e8)
    TEST_BGTZ(0xc18ef206, 0xddaabf0c, 0x26c6077c, 0x00000000, 0x00000000)
    TEST_BGTZ(0xf4e2acf6, 0x656a11e8, 0xdde351c7, 0x00000000, 0x00000000)
    TEST_BGTZ(0xcfba1c40, 0xa57966d2, 0xc4ca3f4c, 0x00000000, 0x00000000)
    TEST_BGTZ(0x28814420, 0x398ff448, 0xacc65800, 0x398ff448, 0xacc65800)
    TEST_BGTZ(0x68d89f80, 0xe228ddb6, 0xdd97df05, 0xe228ddb6, 0xdd97df05)
    TEST_BGTZ(0xe3d86394, 0xe32f4cf4, 0x643943a0, 0x00000000, 0x00000000)
    TEST_BGTZ(0xdaea4ae0, 0x572abb70, 0x017510ae, 0x00000000, 0x00000000)
    TEST_BGTZ(0x7afd34e0, 0xa747bbb0, 0xddf05900, 0xa747bbb0, 0xddf05900)
    TEST_BGTZ(0x5278e3d0, 0xce5afb08, 0x97e24bac, 0xce5afb08, 0x97e24bac)
    TEST_BGTZ(0x7d05f388, 0xceb1b900, 0x487e9c3c, 0xceb1b900, 0x487e9c3c)
    TEST_BGTZ(0x88be24c8, 0x5489e40a, 0xdbec76e4, 0x00000000, 0x00000000)
    TEST_BGTZ(0x4ffc8b80, 0xe570b32c, 0x52906034, 0xe570b32c, 0x52906034)
    TEST_BGTZ(0xdb381e30, 0x60a00828, 0xeea974f0, 0x00000000, 0x00000000)
    TEST_BGTZ(0x38f32dce, 0x264ee3be, 0x7b218b6c, 0x264ee3be, 0x7b218b6c)
    TEST_BGTZ(0xde0743d8, 0x6fc210a0, 0xdd3edfd0, 0x00000000, 0x00000000)
    TEST_BGTZ(0xaad661d8, 0x30d98512, 0xb849ed6c, 0x00000000, 0x00000000)
    TEST_BGTZ(0xdb149a64, 0x044e3aeb, 0xeeea49d0, 0x00000000, 0x00000000)
    TEST_BGTZ(0x6318abe8, 0x1e24a00c, 0x9f89c3cf, 0x1e24a00c, 0x9f89c3cf)
    TEST_BGTZ(0xd8c4ace3, 0x96f8c39d, 0xcff96799, 0x00000000, 0x00000000)
    TEST_BGTZ(0x3d5c43ac, 0x64300f10, 0xb15250e5, 0x64300f10, 0xb15250e5)
    TEST_BGTZ(0x376d6900, 0x63392fb8, 0xc7851378, 0x63392fb8, 0xc7851378)
    TEST_BGTZ(0xa150437e, 0x630bc8f2, 0x946406d4, 0x00000000, 0x00000000)
    TEST_BGTZ(0xdbe6f779, 0x65889a8c, 0xf83ce74e, 0x00000000, 0x00000000)
    TEST_BGTZ(0x2d562b40, 0xcc865e48, 0x7d22d970, 0xcc865e48, 0x7d22d970)
    TEST_BGTZ(0x98ff8f1c, 0x26c8811c, 0x512da934, 0x00000000, 0x00000000)
    TEST_BGTZ(0x77471b9c, 0x2e0b8ce0, 0x433e4cd7, 0x2e0b8ce0, 0x433e4cd7)
    TEST_BGTZ(0x0737bf48, 0xd1854e7c, 0xce917c1c, 0xd1854e7c, 0xce917c1c)
    TEST_BGTZ(0x63260240, 0xef1123f7, 0x43d19608, 0xef1123f7, 0x43d19608)
    TEST_BGTZ(0x37ee7320, 0x49432ca8, 0x299d7670, 0x49432ca8, 0x299d7670)
    TEST_BGTZ(0x8609edb0, 0x45a85e00, 0x4a3f2644, 0x00000000, 0x00000000)
    TEST_BGTZ(0xed4ccd00, 0xabd8ade8, 0x6dd1abe4, 0x00000000, 0x00000000)
    TEST_BGTZ(0x9541754c, 0xcb76a116, 0x2f022af8, 0x00000000, 0x00000000)
    TEST_BGTZ(0xc2c019d0, 0x734365ba, 0x30dc3dc0, 0x00000000, 0x00000000)
    TEST_BGTZ(0xbac72ec2, 0x2892c01f, 0xcf87ddfc, 0x00000000, 0x00000000)
    TEST_BGTZ(0x5f8bdb24, 0xc43fd5fc, 0xbdb5e3a5, 0xc43fd5fc, 0xbdb5e3a5)
    TEST_BGTZ(0x234903fe, 0xa00abad5, 0x10eaa1ac, 0xa00abad5, 0x10eaa1ac)
    TEST_BGTZ(0x641f1aa8, 0xc4154232, 0xbf06cf13, 0xc4154232, 0xbf06cf13)
    TEST_BGTZ(0xbc196de8, 0x2475e71e, 0x138f991a, 0x00000000, 0x00000000)
    TEST_BGTZ(0xbd6b08f2, 0xf0484b7a, 0x6c366cf1, 0x00000000, 0x00000000)
    TEST_BGTZ(0xc96e8ec0, 0xe7942457, 0x08a4fbd8, 0x00000000, 0x00000000)
    TEST_BGTZ(0x3fa8a554, 0x9b7ef83e, 0xeae76b1c, 0x9b7ef83e, 0xeae76b1c)
    TEST_BGTZ(0xd14f4d82, 0x4e251780, 0x1902f458, 0x00000000, 0x00000000)
    TEST_BGTZ(0x87bd4f22, 0x39e804e8, 0x2a764a40, 0x00000000, 0x00000000)
    TEST_BGTZ(0x799f117e, 0xde3be87a, 0x36c09318, 0xde3be87a, 0x36c09318)
    TEST_BGTZ(0x128a6080, 0xefa454dc, 0x31779bbc, 0xefa454dc, 0x31779bbc)
    TEST_BGTZ(0xeb65913f, 0xf8a7ca38, 0x9a995300, 0x00000000, 0x00000000)
    TEST_BGTZ(0x855b4ff0, 0x08d08d1e, 0x0ac55a20, 0x00000000, 0x00000000)
    TEST_BGTZ(0x9ae24448, 0x79b24244, 0x73debe17, 0x00000000, 0x00000000)
    TEST_BGTZ(0x6159b180, 0xb86e8f40, 0x59a94d38, 0xb86e8f40, 0x59a94d38)
    TEST_BGTZ(0x209e05c0, 0xfdc4855e, 0x286b8c7c, 0xfdc4855e, 0x286b8c7c)
    TEST_BGTZ(0xab3e1fc0, 0x07b0125c, 0x12b1adf8, 0x00000000, 0x00000000)
    TEST_BGTZ(0x6a121cc8, 0x0b57a528, 0x3dfb88bc, 0x0b57a528, 0x3dfb88bc)
    TEST_BGTZ(0xc14ccbc4, 0xb1462638, 0xc2c3d768, 0x00000000, 0x00000000)
    TEST_BGTZ(0x5f7848b2, 0x237e7128, 0xd8b96790, 0x237e7128, 0xd8b96790)
    TEST_BGTZ(0x0c5f3890, 0x605fe450, 0x87cbc48a, 0x605fe450, 0x87cbc48a)
    TEST_BGTZ(0x2a7bae80, 0x8878ecf1, 0x1f40734c, 0x8878ecf1, 0x1f40734c)
    TEST_BGTZ(0x799df247, 0xc9d640ba, 0x1a539010, 0xc9d640ba, 0x1a539010)
    TEST_BGTZ(0x2df661dc, 0x2e48d4b0, 0xff057d44, 0x2e48d4b0, 0xff057d44)
    TEST_BGTZ(0x914ab9d4, 0x87d795c0, 0x5b18b8f6, 0x00000000, 0x00000000)
    TEST_BGTZ(0x5654cff2, 0x71ba03fc, 0x78699699, 0x71ba03fc, 0x78699699)
    TEST_BGTZ(0x84b41c9c, 0xdcd91100, 0x51816f11, 0x00000000, 0x00000000)
    TEST_BGTZ(0xd231ae34, 0x7cb04970, 0x3af3d86c, 0x00000000, 0x00000000)
    TEST_BGTZ(0x5a83f8e0, 0x1d092948, 0xa21db6b2, 0x1d092948, 0xa21db6b2)
    TEST_BGTZ(0x054cf3a8, 0xe04147a0, 0x20dddda4, 0xe04147a0, 0x20dddda4)
    TEST_BGTZ(0x041f3e20, 0xacc0b5c0, 0x3b684b32, 0xacc0b5c0, 0x3b684b32)
    TEST_BGTZ(0xfea37fac, 0x989b5a0e, 0xf5c467c0, 0x00000000, 0x00000000)
    TEST_BGTZ(0xf925c490, 0x4a1e90dd, 0xf74c5221, 0x00000000, 0x00000000)
    TEST_BGTZ(0xc9bb4e70, 0x0dcbf674, 0xd0815e7c, 0x00000000, 0x00000000)
    TEST_BGTZ(0xdfbeeef0, 0x370a1bc8, 0xb7ba75b6, 0x00000000, 0x00000000)
    TEST_BGTZ(0x425df030, 0x3a9d7a3e, 0x38ebcae0, 0x3a9d7a3e, 0x38ebcae0)
    TEST_BGTZ(0xc10f5858, 0x25bf5494, 0x7a6507a4, 0x00000000, 0x00000000)
    TEST_BGTZ(0x70292a83, 0xb1d2c299, 0xb42f8e16, 0xb1d2c299, 0xb42f8e16)
    TEST_BGTZ(0xa8fdea40, 0xb433e137, 0xced00be0, 0x00000000, 0x00000000)
    TEST_BGTZ(0x03e4c675, 0x82556134, 0x55f09ef0, 0x82556134, 0x55f09ef0)
    TEST_BGTZ(0xf43eb720, 0xbb8b96d0, 0xcaac9dfe, 0x00000000, 0x00000000)
    TEST_BGTZ(0x5dddda80, 0x226ba480, 0xd0e33de0, 0x226ba480, 0xd0e33de0)
    TEST_BGTZ(0x1f3bdfe4, 0xdc03c5bc, 0x2ef0ca10, 0xdc03c5bc, 0x2ef0ca10)
    TEST_BGTZ(0xd6d41815, 0x2f024ea2, 0x2f1c77e2, 0x00000000, 0x00000000)
    TEST_BGTZ(0x2f43ec00, 0x29a588a0, 0x30949d58, 0x29a588a0, 0x30949d58)
    TEST_BGTZ(0xd273451c, 0xb936d8d4, 0xb35ea090, 0x00000000, 0x00000000)
    TEST_BGTZ(0xf0845fa9, 0xa8657f46, 0x6b4395b8, 0x00000000, 0x00000000)
    TEST_BGTZ(0xeb3cbab4, 0x6519e328, 0xb37c2bc0, 0x00000000, 0x00000000)
    TEST_BGTZ(0xc7db0e1c, 0x1f9a381a, 0x8332b955, 0x00000000, 0x00000000)
    TEST_BGTZ(0x221d0568, 0x4be5046a, 0x4024468c, 0x4be5046a, 0x4024468c)
    TEST_BGTZ(0x738e3590, 0xb24b821b, 0x03709c84, 0xb24b821b, 0x03709c84)
    TEST_BGTZ(0xdc199208, 0xb5c14700, 0x310d1c35, 0x00000000, 0x00000000)
    TEST_BGTZ(0x4a2842dc, 0xc75cb7f8, 0x004bcd80, 0xc75cb7f8, 0x004bcd80)
    TEST_BGTZ(0x5b819f5a, 0xc35df970, 0xc5bbd1b2, 0xc35df970, 0xc5bbd1b2)
    TEST_BGTZ(0xdc227520, 0xe08c3bec, 0x55d05bfc, 0x00000000, 0x00000000)
    TEST_BGTZ(0x60130516, 0x48c64017, 0xc7588396, 0x48c64017, 0xc7588396)
    TEST_BGTZ(0xd3c9dbcc, 0xaffdf854, 0x89ecc30a, 0x00000000, 0x00000000)
    TEST_BGTZ(0xaebb4e66, 0xc0e05ee4, 0x2024bcb8, 0x00000000, 0x00000000)
    TEST_BGTZ(0x29772504, 0x6adc13a2, 0x4491b3c8, 0x6adc13a2, 0x4491b3c8)
    TEST_BGTZ(0xd1c8d5f0, 0xe5a49233, 0x8718b53c, 0x00000000, 0x00000000)
    TEST_BGTZ(0xb46fac90, 0xceb508c0, 0xfb047a66, 0x00000000, 0x00000000)
    TEST_BGTZ(0x1aa510b0, 0xd09fbcee, 0xe862d678, 0xd09fbcee, 0xe862d678)
    TEST_BGTZ(0xdae989e0, 0xcae5c1fe, 0x90eeae2c, 0x00000000, 0x00000000)
    TEST_BGTZ(0x5922f146, 0x380970f9, 0x98a75af8, 0x380970f9, 0x98a75af8)
    TEST_BGTZ(0xcf094d06, 0x6397f58c, 0x2ea6d300, 0x00000000, 0x00000000)
    TEST_BGTZ(0xa85070c5, 0x6d89e5e0, 0xc3634260, 0x00000000, 0x00000000)
    TEST_BGTZ(0xa2765a20, 0xcd1c5e1e, 0x81601059, 0x00000000, 0x00000000)
    TEST_BGTZ(0x842fc806, 0x8ea15299, 0xe75ef208, 0x00000000, 0x00000000)
    TEST_BGTZ(0xbfcab798, 0x595fcc38, 0xbc8fe3e0, 0x00000000, 0x00000000)
    TEST_BGTZ(0x6a24a774, 0xbd762764, 0xbb3aae00, 0xbd762764, 0xbb3aae00)
    TEST_BGTZ(0xeaf82624, 0x792b005c, 0x5fafefa0, 0x00000000, 0x00000000)
    TEST_BGTZ(0x3ff1e0f4, 0xe4f0214a, 0x04e0f6a8, 0xe4f0214a, 0x04e0f6a8)
    TEST_BGTZ(0x1f224d19, 0x42fdba86, 0xd6b279b8, 0x42fdba86, 0xd6b279b8)
    TEST_BGTZ(0x99d2a174, 0x75eec590, 0xb94a60f8, 0x00000000, 0x00000000)
    TEST_BGTZ(0xd7cf0da0, 0x120ecf58, 0x97333f40, 0x00000000, 0x00000000)
    TEST_BGTZ(0xadeba8ae, 0x5b46fe3c, 0x0b0604e0, 0x00000000, 0x00000000)
    TEST_BGTZ(0xe6994510, 0x55b897bc, 0x648c65aa, 0x00000000, 0x00000000)
    TEST_BGTZ(0x5e604b62, 0xcacbc700, 0x13e5b154, 0xcacbc700, 0x13e5b154)
    TEST_BGTZ(0x1426e60c, 0x36c83c00, 0xaa6e1e28, 0x36c83c00, 0xaa6e1e28)
    TEST_BGTZ(0xe9544e1c, 0xd42f4088, 0x8628b4ed, 0x00000000, 0x00000000)
    TEST_BGTZ(0x9865b63c, 0x622593c8, 0xde258640, 0x00000000, 0x00000000)
    TEST_BGTZ(0x6b5bebb4, 0xcd36ba20, 0x18d8b0d0, 0xcd36ba20, 0x18d8b0d0)
    TEST_BGTZ(0xe9b1b5f0, 0x697e04c8, 0x883c94b6, 0x00000000, 0x00000000)
    TEST_BGTZ(0x9d4823f0, 0xca377894, 0xab5f9b60, 0x00000000, 0x00000000)
    TEST_BGTZ(0x41ac3ac4, 0xd01d6f48, 0x39805640, 0xd01d6f48, 0x39805640)
    TEST_BGTZ(0xdbe11848, 0xcac0e7b4, 0xd1632699, 0x00000000, 0x00000000)
    TEST_BGTZ(0x3b66064e, 0xb4bebe2c, 0x288e91ce, 0xb4bebe2c, 0x288e91ce)
    TEST_BGTZ(0xb8defab4, 0xf4f4ff50, 0x20670814, 0x00000000, 0x00000000)
    TEST_BGTZ(0x877d5628, 0xeb1db9b1, 0xe059f36e, 0x00000000, 0x00000000)
    TEST_BGTZ(0xfcfab3cc, 0x4e2018d5, 0x393a9f64, 0x00000000, 0x00000000)
    TEST_BGTZ(0x3473c7d8, 0x1b9a5080, 0xaefe0d50, 0x1b9a5080, 0xaefe0d50)
    TEST_BGTZ(0x2a28b868, 0x5030cf1a, 0xd003c6d0, 0x5030cf1a, 0xd003c6d0)
    TEST_BGTZ(0x6a189190, 0x7ae9e85c, 0x20ca10cc, 0x7ae9e85c, 0x20ca10cc)
    TEST_BGTZ(0xa8613940, 0x73b0b7a0, 0x11d83ebe, 0x00000000, 0x00000000)
    TEST_BGTZ(0x0c29c4c4, 0x1e38ec8b, 0x5bfc8a00, 0x1e38ec8b, 0x5bfc8a00)
    TEST_BGTZ(0xb7520811, 0x4263ffc0, 0x1226a178, 0x00000000, 0x00000000)
    TEST_BGTZ(0xd4799c00, 0x00e7c8a0, 0x27635fe4, 0x00000000, 0x00000000)
    TEST_BGTZ(0xbf22f13a, 0xedca9e57, 0x2d356d72, 0x00000000, 0x00000000)
    TEST_BGTZ(0x366c0280, 0x1ded7d10, 0x74b169cc, 0x1ded7d10, 0x74b169cc)
    TEST_BGTZ(0xcbe994f0, 0x16e3633c, 0xa128a86d, 0x00000000, 0x00000000)
    TEST_BGTZ(0x1e7564f8, 0x826de24c, 0xeb6fd1c7, 0x826de24c, 0xeb6fd1c7)
    TEST_BGTZ(0xe1ea6984, 0xee9c4cd8, 0x3ba7fe98, 0x00000000, 0x00000000)
    TEST_BGTZ(0x8fd0bebc, 0x35541bfa, 0x0f61eb89, 0x00000000, 0x00000000)
    TEST_BGTZ(0x9030a652, 0xe421cfd0, 0x51efd96c, 0x00000000, 0x00000000)
    TEST_BGTZ(0x0bd80d3c, 0x41a4d038, 0xb33c2678, 0x41a4d038, 0xb33c2678)
    TEST_BGTZ(0x208549ab, 0x43a7492c, 0x1e08841a, 0x43a7492c, 0x1e08841a)
    TEST_BGTZ(0x5b2c08f2, 0x426a1941, 0x71ed3d00, 0x426a1941, 0x71ed3d00)
    TEST_BGTZ(0xc045ae0c, 0x5d68c9b4, 0x8fb5d247, 0x00000000, 0x00000000)
    TEST_BGTZ(0x2d2e7baf, 0xc9e77750, 0xd0887180, 0xc9e77750, 0xd0887180)
    TEST_BGTZ(0xc1113fb8, 0x94350db0, 0xe7e8549e, 0x00000000, 0x00000000)
    TEST_BGTZ(0x62cea9a8, 0xe9ef9674, 0x819f9a20, 0xe9ef9674, 0x819f9a20)
    TEST_BGTZ(0xeb576fc0, 0xf5ccc744, 0x305f7fcc, 0x00000000, 0x00000000)
    TEST_BGTZ(0xe7f08e8c, 0x62c9bc58, 0xa6520be5, 0x00000000, 0x00000000)
    TEST_BGTZ(0x98856a7c, 0x99379094, 0x5f8fa7f8, 0x00000000, 0x00000000)
    TEST_BGTZ(0x4e67090e, 0x48cd0960, 0x5ece7ef0, 0x48cd0960, 0x5ece7ef0)
    TEST_BGTZ(0xf8aa44a0, 0xa85a2508, 0xc82dfdb0, 0x00000000, 0x00000000)
    TEST_BGTZ(0x00000000, 0x79bb8050, 0xa7583a00, 0x00000000, 0x00000000)
###detect exception
    bne s2, zero, inst_error
    nop
###score ++
    addiu s3, s3, 1
###output (s0<<24)|s3
inst_error:  
    sll t1, s0, 24
    or t0, t1, s3 
    sw t0, 0(s1)
    jr ra
    nop
END(n45_bgtz_test)
